package com.test.designpattern.chainOfResponsibility.demo1;

import org.springframework.stereotype.Component;

@Component
public class AuditHandler3 extends AbstractHandler{

    @Override
    public Integer getOrder() {
        return 3;
    }

    @Override
    public void handler(Object obj) {

        System.out.println("处理业务：handler3，接收参数："+obj.toString());

        //提取到父类
//        if (nextHandler != null) {
//            nextHandler.handler();
//        }

        //调用下一个执行器的handler
        this.process(obj);
    }
}
